<template>
    <div>
        <md-button class="popup-ok-button" type="primary" @click="details('14')">抽奖主页</md-button>
        <md-button class="popup-ok-button" type="primary" @click="details('13')">我的</md-button>
        <md-button class="popup-ok-button" type="primary" @click="details('1')">首页</md-button>
        <md-button class="popup-ok-button" type="primary" @click="details('12')">e学堂</md-button>
        <md-button class="popup-ok-button" type="primary" @click="details('2')">支付宝小程序首页</md-button>
        <md-button class="popup-ok-button" type="primary" @click="details('5')">电子对账单</md-button>
    </div>
</template>

<script>
import { Button } from 'mand-mobile'
export default {
    data() {
        return {

        }
    },
    components: {
        [Button.name]: Button
    },
    methods: {
        details(key) {
            switch(key) {
                case '1':
                    this.$router.push({
                        path: '/ddsIndex2'
                    })
                break
                case '2':
                    this.$router.push({
                        path: '/ddsZfb2'
                    })
                break
                case '5':
                    this.$router.push({
                        path: '/ddsAccount2'
                    })
                break
                case '12':
                    this.$router.push({
                        path: '/ddsEschool2'
                    })
                break
                case '13':
                    this.$router.push({
                        path: '/ddsMy2'
                    })
                break
                case '14':
                    this.$router.push({
                        path: '/ddsDraw2'
                    })
                break
            }
        }
    }
}
</script>

<style lang="less" scoped>
    .popup-ok-button {
        box-sizing: border-box;
        width: 100%;
        margin: 20px 0;
    }
</style>